package com.yc.hotel.room.feign;


import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.yc.hotel.dto.RoomTypeDTO;

@FeignClient(name="room-server", fallback = IRoomTypeFeignClient.RoomTypeFeignClientFallBack.class)
public interface IRoomTypeFeignClient {

	@PostMapping("/types/finds")
	List<RoomTypeDTO> finds(@RequestParam Map<String, Object> map);

	
	@Component
	public static class RoomTypeFeignClientFallBack implements IRoomTypeFeignClient {

		@Override
		public List<RoomTypeDTO> finds(Map<String, Object> map) {
			// TODO Auto-generated method stub
			return null;
		}

	}

	

	

}
